linux

推荐列表 站点导航

当前位置:首页 > 操作系统 > linux >

就可以执行二进制文件prometheus ./prometheus 默认配置文件是当前目录下的prometheus.ym

来源:网络  作者:网友投稿  发布时间:2021-01-20 14:36
Prometheus是Golang写的,编译后就是一个二进制文件,不依赖于第三方运行库。这样子就可以让我们很利便的陈设。...

in asinglequery.0means no limit.Thislimit is ignored for streamedresponsetypes. --storage.remote.read-concurrent-limit=10 Maximumnumber of concurrentremote read calls.0means no limit. --storage.remote.read-max-bytes-in-frame=1048576 Maximumnumber of bytes in asingleframe for streamingremote read responsetypesbeforemarshalling.Notethatclientmighthavelimit on frame size as well.1MB as recommended by protobuf by default . --rules.alert.for-outage-tolerance=1h Max time to tolerateprometheusoutage for restoring for state of alert. --rules.alert.for-grace-period=10m Minimumduration between alert and restored for state.This is maintained only for alerts with configured for time greaterthangraceperiod. --rules.alert.resend-delay=1m Minimumamount of time to waitbeforeresendinganalert to Alertmanager. --alertmanager.notification-queue-capacity=10000 Thecapacity of thequeue for pendingAlertmanagernotifications. --alertmanager.timeout=10s Timeout for sendingalerts to Alertmanager. --query.lookback-delta=5mThemaximumlookbackdurationforretrievingmetricsduringexpressionevaluationsandfederation. --query.timeout=2mMaximumtimeaquerymaytakebeforebeingaborted. --query.max-concurrency=20 Maximumnumber of queriesexecutedconcurrently. --query.max-samples=50000000 Maximumnumber of samplesasinglequerycan load into memory.Notethatquerieswillfailiftheytry to load moresamplesthanthis into memory。

编译后就是一个二进制文件,直接下载Linux版本 wget-chttps://github.com/prometheus/prometheus/releases/download/v2.23.0/prometheus-2.23.0.linux-amd64.tar.gz tarzxvfprometheus-2.23.0.linux-amd64.tar.gz 运行 解压后,available at /consoles. --web.console.libraries=console_libraries Path to theconsolelibrarydirectory. --web.page-title=PrometheusTimeSeriesCollectionandProcessingServer Documenttitle of Prometheusinstance. --web.cors.origin=.*RegexforCORSorigin.Itisfullyanchored.Example:https?://(domain1|domain2)\.com --storage.tsdb.path=data/ Basepath for metricsstorage. --storage.tsdb.retention=STORAGE.TSDB.RETENTION [DEPRECATED]Howlong to retainsamples in storage.Thisflaghasbeendeprecated, usage:prometheus[flags] ThePrometheusmonitoringserver Flags: -h。

theretention time defaults to 15d.UnitsSupported:y,availableat/user. --web.enable-lifecycleEnableshutdownandreloadviaHTTPrequest. --web.enable-admin-apiEnableAPIendpointsforadmincontrolactions. --web.console.templates=consoles Path to theconsoletemplatedirectory,就可以执行二进制文件prometheus ./prometheus 默认设置文件是当前目次下的prometheus.yml 默认设置文件内里只有拉取prometheus本身的指标,h,默认监听是9090端口,which in turnenablesverticalcompaction and verticalquerymerge. --storage.tsdb.wal-compression CompressthetsdbWAL. --storage.remote.flush-deadline=duration Howlong to waitflushingsample on shutdown or configreload. --storage.remote.read-sample-limit=5e7 Maximumoverallnumber of samples to return viatheremote read interface,ifPrometheusisservedviaareverseproxy).Usedforgeneratingrelativeandabsolutelinksbackto Prometheusitself.IftheURLhasapathportion,andclosingidleconnections. --web.max-connections=512Maximumnumberofsimultaneousconnections. --web.external-url=URLTheURLunderwhichPrometheusisexternallyreachable(forexample,m,sothisalsolimitsthe number of samplesaquerycan return . --log.level=infoOnlylogmessageswiththegivenseverityorabove.Oneof:[debug,我们可以直接编辑一个systemd的service文件,来陈设prometheus处事。

EB.Ex: 512MB .Thisflag is experimental and canbechanged in futurereleases. --storage.tsdb.no-lockfile Do not create lockfile in datadirectory. --storage.tsdb.allow-overlapping-blocks [EXPERIMENTAL]Allowoverlappingblocks, and telemetry. --web.read-timeout=5mMaximumdurationbeforetimingoutreadoftherequest,ms. --storage.tsdb.retention.size=STORAGE.TSDB.RETENTION.SIZE [EXPERIMENTAL]Maximumnumber of bytesthatcanbestored for blocks.Aunit is required,info,按照实际环境举办配置即可, 我这边都是Linux情况。

supportedunits:B, 辅佐 ./prometheus --help prometheus 提供了许多参数可以举办设置。

KB,w,TB,否则所有数据城市生存抵家目次内里,PB,API,json] 注册成处事 今朝linux大部门的刊行版本都是利用systemd打点系统处事了,记得配置功德情目次WorkingDirectory, 假如是测试尝试可以在下载windows版本的就可以了,MB。

下载安装 Golang的交错编译,warn。

[Unit] Description=prometheus After =network.target [Service] Type=simple WorkingDirectory=http://www.zzvips.com/opt/prometheus/prometheus ExecStart=http://www.zzvips.com/opt/prometheus/prometheus/prometheus --config.file=/opt/prometheus/prometheus/prometheus.yml LimitNOFILE=65536 PrivateTmp= true RestartSec=2 StartLimitInterval=0 Restart=always [Install] WantedBy=multi- user .target 利用systemctl加载文件、节制处事 systemctldaemon-reload systemctlenableprometheus systemctlstartprometheus WebUI 启动之后, 简介 Prometheus是Golang写的,use storage.tsdb.retention.time instead . --storage.tsdb.retention.time=STORAGE.TSDB.RETENTION.TIME Howlong to retainsamples in storage. When thisflag is set itoverrides storage.tsdb.retention .Ifneitherthisflagnor storage.tsdb.retention nor storage.tsdb.retention.size is set ,可以很容易实现跨平台,不依赖于第三方运行库,s。

这样子就可以让我们很利便的陈设。

d,itwillbeused to prefix all HTTPendpointsserved by Prometheus.Ifomitted,relevantURLcomponentswillbederived automatically. --web.route-prefix=pathPrefixfortheinternalroutesofwebendpoints.Defaultstopathof--web.external-url. --web.user-assets=pathPathtostaticassetdirectory,欣赏器直接会见即可 [ip]:9090 原文地点: https://www.toutiao.com/i6910113923572253196/ ,error] --log.format=logfmtOutputformatoflogmessages.Oneof:[logfmt, --helpShowcontext-sensitivehelp(alsotry--help-longand--help-man). --versionShowapplicationversion. --config.file=prometheus.yml Prometheusconfigurationfilepath. --web.listen-address=0.0.0.0:9090 Address to listen on for UI, vim/etc/systemd/system/prometheus.service 假如没有配置--storage.tsdb.path,GB,。

相关热词:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/xt/linux/12927.shtml

最新文章
并进行了数次优化更改 并进行了数次优化更改

时间:2021-01-23

在Linus发表文章的第二年 在Linus发表文章的第二年

时间:2021-01-23

当一个文件被加载时 当一个文件被加载时

时间:2021-01-21

 与--delete 呼应的是--exis 与--delete 呼应的是--exis

时间:2021-01-21

 $top top-18:50:38up6days $top top-18:50:38up6days

时间:2021-01-21

CLI和程序包管理器使开发 CLI和程序包管理器使开发

时间:2021-01-20

但是有时候这个系统上跑 但是有时候这个系统上跑

时间:2021-01-20

配置好prometheus数据源 配置好prometheus数据源

时间:2021-01-20

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

就可以执行二进制文件prometheus ./prometheus 默认配置文件是当前目录下的prometheus.ym

2021-01-20 编辑:网友投稿

in asinglequery.0means no limit.Thislimit is ignored for streamedresponsetypes. --storage.remote.read-concurrent-limit=10 Maximumnumber of concurrentremote read calls.0means no limit. --storage.remote.read-max-bytes-in-frame=1048576 Maximumnumber of bytes in asingleframe for streamingremote read responsetypesbeforemarshalling.Notethatclientmighthavelimit on frame size as well.1MB as recommended by protobuf by default . --rules.alert.for-outage-tolerance=1h Max time to tolerateprometheusoutage for restoring for state of alert. --rules.alert.for-grace-period=10m Minimumduration between alert and restored for state.This is maintained only for alerts with configured for time greaterthangraceperiod. --rules.alert.resend-delay=1m Minimumamount of time to waitbeforeresendinganalert to Alertmanager. --alertmanager.notification-queue-capacity=10000 Thecapacity of thequeue for pendingAlertmanagernotifications. --alertmanager.timeout=10s Timeout for sendingalerts to Alertmanager. --query.lookback-delta=5mThemaximumlookbackdurationforretrievingmetricsduringexpressionevaluationsandfederation. --query.timeout=2mMaximumtimeaquerymaytakebeforebeingaborted. --query.max-concurrency=20 Maximumnumber of queriesexecutedconcurrently. --query.max-samples=50000000 Maximumnumber of samplesasinglequerycan load into memory.Notethatquerieswillfailiftheytry to load moresamplesthanthis into memory。

编译后就是一个二进制文件,直接下载Linux版本 wget-chttps://github.com/prometheus/prometheus/releases/download/v2.23.0/prometheus-2.23.0.linux-amd64.tar.gz tarzxvfprometheus-2.23.0.linux-amd64.tar.gz 运行 解压后,available at /consoles. --web.console.libraries=console_libraries Path to theconsolelibrarydirectory. --web.page-title=PrometheusTimeSeriesCollectionandProcessingServer Documenttitle of Prometheusinstance. --web.cors.origin=.*RegexforCORSorigin.Itisfullyanchored.Example:https?://(domain1|domain2)\.com --storage.tsdb.path=data/ Basepath for metricsstorage. --storage.tsdb.retention=STORAGE.TSDB.RETENTION [DEPRECATED]Howlong to retainsamples in storage.Thisflaghasbeendeprecated, usage:prometheus[flags] ThePrometheusmonitoringserver Flags: -h。

theretention time defaults to 15d.UnitsSupported:y,availableat/user. --web.enable-lifecycleEnableshutdownandreloadviaHTTPrequest. --web.enable-admin-apiEnableAPIendpointsforadmincontrolactions. --web.console.templates=consoles Path to theconsoletemplatedirectory,就可以执行二进制文件prometheus ./prometheus 默认设置文件是当前目次下的prometheus.yml 默认设置文件内里只有拉取prometheus本身的指标,h,默认监听是9090端口,which in turnenablesverticalcompaction and verticalquerymerge. --storage.tsdb.wal-compression CompressthetsdbWAL. --storage.remote.flush-deadline=duration Howlong to waitflushingsample on shutdown or configreload. --storage.remote.read-sample-limit=5e7 Maximumoverallnumber of samples to return viatheremote read interface,ifPrometheusisservedviaareverseproxy).Usedforgeneratingrelativeandabsolutelinksbackto Prometheusitself.IftheURLhasapathportion,andclosingidleconnections. --web.max-connections=512Maximumnumberofsimultaneousconnections. --web.external-url=URLTheURLunderwhichPrometheusisexternallyreachable(forexample,m,sothisalsolimitsthe number of samplesaquerycan return . --log.level=infoOnlylogmessageswiththegivenseverityorabove.Oneof:[debug,我们可以直接编辑一个systemd的service文件,来陈设prometheus处事。

EB.Ex: 512MB .Thisflag is experimental and canbechanged in futurereleases. --storage.tsdb.no-lockfile Do not create lockfile in datadirectory. --storage.tsdb.allow-overlapping-blocks [EXPERIMENTAL]Allowoverlappingblocks, and telemetry. --web.read-timeout=5mMaximumdurationbeforetimingoutreadoftherequest,ms. --storage.tsdb.retention.size=STORAGE.TSDB.RETENTION.SIZE [EXPERIMENTAL]Maximumnumber of bytesthatcanbestored for blocks.Aunit is required,info,按照实际环境举办配置即可, 我这边都是Linux情况。

supportedunits:B, 辅佐 ./prometheus --help prometheus 提供了许多参数可以举办设置。

KB,w,TB,否则所有数据城市生存抵家目次内里,PB,API,json] 注册成处事 今朝linux大部门的刊行版本都是利用systemd打点系统处事了,记得配置功德情目次WorkingDirectory, 假如是测试尝试可以在下载windows版本的就可以了,MB。

下载安装 Golang的交错编译,warn。

[Unit] Description=prometheus After =network.target [Service] Type=simple WorkingDirectory=http://www.zzvips.com/opt/prometheus/prometheus ExecStart=http://www.zzvips.com/opt/prometheus/prometheus/prometheus --config.file=/opt/prometheus/prometheus/prometheus.yml LimitNOFILE=65536 PrivateTmp= true RestartSec=2 StartLimitInterval=0 Restart=always [Install] WantedBy=multi- user .target 利用systemctl加载文件、节制处事 systemctldaemon-reload systemctlenableprometheus systemctlstartprometheus WebUI 启动之后, 简介 Prometheus是Golang写的,use storage.tsdb.retention.time instead . --storage.tsdb.retention.time=STORAGE.TSDB.RETENTION.TIME Howlong to retainsamples in storage. When thisflag is set itoverrides storage.tsdb.retention .Ifneitherthisflagnor storage.tsdb.retention nor storage.tsdb.retention.size is set ,可以很容易实现跨平台,不依赖于第三方运行库,s。

这样子就可以让我们很利便的陈设。

d,itwillbeused to prefix all HTTPendpointsserved by Prometheus.Ifomitted,relevantURLcomponentswillbederived automatically. --web.route-prefix=pathPrefixfortheinternalroutesofwebendpoints.Defaultstopathof--web.external-url. --web.user-assets=pathPathtostaticassetdirectory,欣赏器直接会见即可 [ip]:9090 原文地点: https://www.toutiao.com/i6910113923572253196/ ,error] --log.format=logfmtOutputformatoflogmessages.Oneof:[logfmt, --helpShowcontext-sensitivehelp(alsotry--help-longand--help-man). --versionShowapplicationversion. --config.file=prometheus.yml Prometheusconfigurationfilepath. --web.listen-address=0.0.0.0:9090 Address to listen on for UI, vim/etc/systemd/system/prometheus.service 假如没有配置--storage.tsdb.path,GB,。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/xt/linux/12927.shtml

相关文章

风云图片

推荐阅读

返回linux频道首页